import java.util.ArrayList;
import java.util.List;

public class Autoboxing {

	public static void main(String[] args) {
		Integer wrappedInt = 5; // Boxing happens here
		int i = wrappedInt; // Unboxing happens here

		@SuppressWarnings("unused")
		Object obj = i; // Boxing happens here

		List<Integer> list = new ArrayList<Integer>();
		list.add(i); // Boxing happens here
		int x = list.get(0); // Unboxing happens here
		System.out.println(x); // Boxing happens here
	}
}
